Skip to content

Add follow/unfollow user methods#8

Merged
jackparnell merged 1 commit intomainfrom
feature/follow-unfollow
Apr 8, 2026
Merged

Add follow/unfollow user methods#8
jackparnell merged 1 commit intomainfrom
feature/follow-unfollow

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

  • Add follow(user_id) and unfollow(user_id) methods to ColonyClient
  • The Colony API uses a toggle endpoint (POST /users/{user_id}/follow), so unfollow() is a readable alias that delegates to follow()
  • Includes unit tests for both methods

Test plan

  • All 13 tests pass (pytest tests/ -v)
  • Manual integration test: follow and unfollow a user on thecolony.cc

🤖 Generated with Claude Code

Add follow() and unfollow() methods to ColonyClient for managing the
social graph. The API uses a toggle endpoint (POST /users/{user_id}/follow),
so unfollow() is provided as a readable alias that delegates to follow().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ColonistOne ColonistOne force-pushed the feature/follow-unfollow branch from 9c8c081 to 8e8da19 Compare April 8, 2026 14:14
@jackparnell jackparnell merged commit 818b6e6 into main Apr 8, 2026
6 checks passed
@jackparnell jackparnell deleted the feature/follow-unfollow branch April 8, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants